<?php
require_once WEB_MODEL_DIR . DIRECTORY_SEPARATOR . 'DAO' . DIRECTORY_SEPARATOR . 'GameCategoryDAO.php';

class GameCategoryService {

	public function countGameCategoryByParentTPG($context, $result, $parent) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByParentTPG($parent);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByParentMobile($context, $result, $parent) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByParentMobile($parent);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByParentCGMB($context, $result, $parent) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByParentCGMB($parent);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByParentMMBG($context, $result, $parent) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByParentMMBG($parent);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByParentNSGT($context, $result, $parent) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByParentNSGT($parent);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
	
    public function getGameCategoryByParentTPG($context, $result, $start, $limit, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentTPG($start, $limit, $parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByParentMobile($context, $result, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentMobile($parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByParentCGMB($context, $result, $start, $limit, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentCGMB($start, $limit, $parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByParentMMBG($context, $result, $start, $limit, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentMMBG($start, $limit, $parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByParentMMBG1($context, $result, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentMMBG1($parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByParentNSGT($context, $result, $start, $limit, $parent) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByParentNSGT($start, $limit, $parent);
            if (isset($gameCategoryArr) && !empty($gameCategoryArr)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Of Category : " . $parent);
                $context -> logError("ERR01", "No Game Category Of Category : " . $parent . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategory($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategory();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
    public function getFullGameCategoryTPG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryTPG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryMobile($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryMobile();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    	
    
	public function getFullGameCategoryCGMB($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryMMBG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryNSGT($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
    public function getFullGameCategoryByLimitTPG($context, $result, $start, $limit) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryByLimitTPG($start, $limit);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryByLimitMobile($context, $result, $start, $limit) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryByLimitMobile($start, $limit);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryByLimitCGMB($context, $result, $start, $limit) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryByLimitCGMB($start, $limit);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryByLimitMMBG($context, $result, $start, $limit) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryByLimitMMBG($start, $limit);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getFullGameCategoryByLimitNSGT($context, $result, $start, $limit) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getFullGameCategoryByLimitNSGT($start, $limit);
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function countGameCategoryTPG($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryTPG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryMobile($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryMobile();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function getGameCategoryByIsNewCGMB($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsNewCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsNewMMBG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsNewMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsNewNSGT($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsNewNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsPopCGMB($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsPopCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsPopMMBG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsPopMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsPopNSGT($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsPopNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByRankNSGT($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByRankNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByRankMMBG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByRankMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByRankCGMB($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByRankCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsFavoriteMMBG($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsFavoriteMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function getGameCategoryByIsFavoriteNSGT($context, $result) {
        $gameCategoryArr = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryArr = $gameCategoryDAO -> getGameCategoryByIsFavoriteNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategoryArr;
    }
    
	public function countGameCategoryMMBG($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryCGMB($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByIsNewCGMB($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByIsNewCGMB();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByIsNewMMBG($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByIsNewMMBG();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryByIsNewNSGT($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryByIsNewNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }
    
	public function countGameCategoryNSGT($context, $result) {
       $total = 0;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $total = $gameCategoryDAO -> countGameCategoryNSGT();
            
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $total;
    }

    public function getGameCategoryByIDTPG($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByIDTPG($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByNameTPG($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByNameTPG($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByIDMobile($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByIDMobile($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByNameMobile($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByNameMobile($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByIDCGMB($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByIDCGMB($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByNameCGMB($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByNameCGMB($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByIDMMBG($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByIDMMBG($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByNameMMBG($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByNameMMBG($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }
    
	public function getGameCategoryByIDNSGT($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByIDNSGT($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    } 

    public function getGameCategoryByNameNSGT($context, ServiceResult $result, $id) {
        $gameCategory = null;
        try {
            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategory = $gameCategoryDAO -> getGameCategoryByNameNSGT($id);
            if (isset($gameCategory) && !empty($gameCategory)) {
                $result -> setSuccess();
            } else {
                $result -> setFailed("ERR01", "No Game Category Found By ID : " . $id);
                $context -> logError("ERR01", "No Game Category Found By ID : " . $id . " Call By Method " . __METHOD__ . " On Class " . __CLASS__);
            }
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }

        return $gameCategory;
    }  
    
	public function insertGameCategoryTPG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> insertGameCategoryTPG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function insertGameCategoryMobile($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> insertGameCategoryMobile($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function insertGameCategoryMMBG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> insertGameCategoryMMBG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function insertGameCategoryMMBGAndNSGT($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> insertGameCategoryMMBGAndNSGT($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function insertGameCategoryCGMB($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> insertGameCategoryCGMB($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryTPG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryTPG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryMobile($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryMobile($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryAjaxTPG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryAjaxTPG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryAjaxMobile($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryAjaxMobile($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryCGMB($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryCGMB($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryAjaxCGMB($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryAjaxCGMB($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryMMBG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryMMBG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryAjaxMMBG($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryAjaxMMBG($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryNSGT($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryNSGT($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }
    
	public function updateGameCategoryAjaxNSGT($context, $result, $param) {
        try {

            $gameCategoryDAO = new GameCategoryDAO($context);

            $gameCategoryDAO -> updateGameCategoryAjaxNSGT($param);
        } catch (Exception $e) {
            $result -> setException($e);
            $context -> logException($e);
        }
    }

}
?>